package com.niuwa.p2p.service.impl.business;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.niuwa.p2p.core.mvc.entity.PageBean;
import com.niuwa.p2p.entity.PageQuery;
import com.niuwa.p2p.entity.channel.LoanClaimAudit;
import com.niuwa.p2p.service.business.ILoanClaimAuditService;
@Service
public class LoanClaimAuditServiceImpl implements ILoanClaimAuditService {
	@Autowired
	com.niuwa.p2p.dao.channel.LoanClaimAuditDao loanClaimAuditDao;
	@Override
	public PageBean<LoanClaimAudit> getRepayOverdueRemarkHistory(
			Map<String, Object> paramMap) {
		assert paramMap.get(PageQuery.PAGEQUERY) != null;
		List<LoanClaimAudit> loanClainAuditHistorylist =  loanClaimAuditDao.selectLoanClaimAuditListByParams(paramMap);
		int totalCount = loanClaimAuditDao.countLoanClaimAuditListByParams(paramMap);
		PageBean<LoanClaimAudit> page = new PageBean<LoanClaimAudit>(totalCount);
		// 设置当前页
		page.setPage(((PageQuery) paramMap.get(PageQuery.PAGEQUERY)).getPage());
		page.setRows(loanClainAuditHistorylist);
		return page;
	}

}
